package com.hzyb.oldpack.dao;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.hzyb.oldpack.model.ShopFile;
@Repository
@Transactional
public interface ShopFileDao extends CrudRepository<ShopFile, String>{
	@Query(value="select concat(filePath,fileName,fileSuffix) from ShopFile where fileId=?1")
	public String findFilePathByFileId(String fileId);
}
